package xkp.lesson.handler;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;
@Controller
@RequestMapping("/user")
public class UserInfoController {
   /* @RequestMapping(value = "/selectAll.action",method = RequestMethod.POST)*/
    @PostMapping("/selectAll.action")
    public List<Object> selectAll(){
        return null;
    }

   /* @RequestMapping("/deleteById.action")*/
    @GetMapping("/deleteById.action")
    public boolean deleteById(){
        return true;
    }

    @RequestMapping("/insert.action")
    public int insert(){
        return 1;
    }
}
